export default {
  url: "/do/list/commerce_area",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'setting/commerceArea',
  title: "商业区管理",
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"communityId","label":"小区编号","type":"search","depend":"community"},{"name":"title","label":"区域名称"},{"name":"parentId","label":"父节点","type":"search","depend":"house_area"},{"name":"isLeaf","label":"是否为单元楼","type":"switch"},{"name":"isCommercial","label":"是否是商业区域","type":"switch"}],
  columns: ["title"],
  condition: [],
  slots: {
      header$() {
      return (
        <>
        <z-action label='添加商区' mode='dialog' fields={["title","isLeaf"]} type='primary' url='/do/put/commerce_area' title='添加商业区' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action label='删除' mode='confirm' link data={row} url='/do/delete/commerce_area' />
<z-action label='修改' mode='dialog' fields={["title"]} link data={row} url='/do/patch/commerce_area' />
        </>
      )
    }
  }
}
  